module.exports = {
    lintOnSave: false,
    transpileDependencies: true,
    productionSourceMap: false,
    // publicPath: process.env.NODE_ENV !== 'production' ? '/' : '/templates',
    publicPath: process.env.NODE_ENV !== 'production' ? '/' : '/',

    devServer: {
        host: '0.0.0.0',
        port: '4112',
        proxy: {
            '/api': {
                target: process.env.VUE_APP_BASE_URL,
                //target: 'http://120.39.223.97:5600',
                changeOrigin: true, //改变来源
                secure: false, //https验证
                // pathRewrite: {//路径替换/重写
                //     '^/api': '',
                // }
            },
            '/static': {
                //后端路径
                // target: 'http://192.168.1.114:5600',
                target: process.env.VUE_APP_BASE_URL,
                //target: 'http://120.39.223.97:5600',
                changeOrigin: true, //改变来源
                secure: false, //https验证
                // pathRewrite: {//路径替换/重写
                //     '^/api': '',
                // }
            }
        },
        historyApiFallback: {
            index: '/index.html', // 与output的publicPath
        },
    },
}
